function [ level ] = threshold( img, alpha )
    Imax = max(img(:));
    Imin = min(img(:));   
    level = alpha * (Imax - Imin) + Imin; 
end

